package com.simtop;

import java.io.File;
import java.net.MalformedURLException;
import java.net.URI;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.SocketException;



public class Test {
    public static void main(String[] args) throws Exception{

        DatagramSocket socket = new DatagramSocket();
        InetAddress ip = InetAddress.getByName("192.168.0.137");
        int port = 8080;

        String s = "        {\n" +
                "            \"tnm\":\"WSD_4_IoStatus\",\n" +
                "            \"vt\":1,\n" +
                "            \"val\":1,\n" +
                "            \"vq\":0,\n" +
                "            \"tss\":1655460651,\n" +
                "            \"tsm\":137\n" +
                "        },";
        //String s = "{\"knd\":2,\"pver\":42,\"rts\":[{\"tnm\":\"WSD_1_WD\",\"vt\":2,\"val\":\"400.0000\",\"vq\":0,\"tss\":1655460651,\"tsm\":468},{\"tnm\":\"WSD_1_SD\",\"vt\":2,\"val\":\"400.0000\",\"vq\":0,\"tss\":1655460651,\"tsm\":468},{\"tnm\":\"WSD_1_IoStatus\",\"vt\":1,\"val\":1,\"vq\":0,\"tss\":1655460651,\"tsm\":137},{\"tnm\":\"WSD_2_WD\",\"vt\":2,\"val\":\"400.0000\",\"vq\":0,\"tss\":1655460651,\"tsm\":468},{\"tnm\":\"WSD_2_SD\",\"vt\":2,\"val\":\"400.0000\",\"vq\":0,\"tss\":1655460651,\"tsm\":468},{\"tnm\":\"WSD_2_IoStatus\",\"vt\":1,\"val\":1,\"vq\":0,\"tss\":1655460651,\"tsm\":137},{\"tnm\":\"WSD_3_WD\",\"vt\":2,\"val\":\"400.0000\",\"vq\":0,\"tss\":1655460651,\"tsm\":468},{\"tnm\":\"WSD_3_SD\",\"vt\":2,\"val\":\"400.0000\",\"vq\":0,\"tss\":1655460651,\"tsm\":468},{\"tnm\":\"WSD_3_IoStatus\",\"vt\":1,\"val\":1,\"vq\":0,\"tss\":1655460651,\"tsm\":137},{\"tnm\":\"WSD_4_WD\",\"vt\":2,\"val\":\"400.0000\",\"vq\":0,\"tss\":1655460651,\"tsm\":468},{\"tnm\":\"WSD_4_SD\",\"vt\":2,\"val\":\"400.0000\",\"vq\":0,\"tss\":1655460651,\"tsm\":468},{\"tnm\":\"WSD_4_IoStatus\",\"vt\":1,\"val\":1,\"vq\":0,\"tss\":1655460651,\"tsm\":137},{\"tnm\":\"WSD_5_WD\",\"vt\":2,\"val\":\"400.0000\",\"vq\":0,\"tss\":1655460651,\"tsm\":468},{\"tnm\":\"WSD_5_SD\",\"vt\":2,\"val\":\"400.0000\",\"vq\":0,\"tss\":1655460651,\"tsm\":468},{\"tnm\":\"WSD_5_IoStatus\",\"vt\":1,\"val\":1,\"vq\":0,\"tss\":1655460651,\"tsm\":137},{\"tnm\":\"WSD_6_WD\",\"vt\":2,\"val\":\"400.0000\",\"vq\":0,\"tss\":1655460651,\"tsm\":468},{\"tnm\":\"WSD_6_SD\",\"vt\":2,\"val\":\"365.0000\",\"vq\":0,\"tss\":1655460651,\"tsm\":468},{\"tnm\":\"WSD_6_IoStatus\",\"vt\":1,\"val\":1,\"vq\":0,\"tss\":1655460651,\"tsm\":137},{\"tnm\":\"WSD_7_WD\",\"vt\":2,\"val\":\"400.0000\",\"vq\":0,\"tss\":1655460651,\"tsm\":468},{\"tnm\":\"WSD_7_SD\",\"vt\":2,\"val\":\"365.0000\",\"vq\":0,\"tss\":1655460651,\"tsm\":468},{\"tnm\":\"WSD_7_IoStatus\",\"vt\":1,\"val\":1,\"vq\":0,\"tss\":1655460651,\"tsm\":137},{\"tnm\":\"WSD_8_WD\",\"vt\":2,\"val\":\"400.0000\",\"vq\":0,\"tss\":1655460651,\"tsm\":468},{\"tnm\":\"WSD_8_SD\",\"vt\":2,\"val\":\"365.0000\",\"vq\":0,\"tss\":1655460651,\"tsm\":468},{\"tnm\":\"WSD_8_IoStatus\",\"vt\":1,\"val\":1,\"vq\":0,\"tss\":1655460651,\"tsm\":137},{\"tnm\":\"WSD_9_WD\",\"vt\":2,\"val\":\"400.0000\",\"vq\":0,\"tss\":1655460651,\"tsm\":468},{\"tnm\":\"WSD_9_SD\",\"vt\":2,\"val\":\"365.0000\",\"vq\":0,\"tss\":1655460651,\"tsm\":468},{\"tnm\":\"WSD_9_IoStatus\",\"vt\":1,\"val\":1,\"vq\":0,\"tss\":1655460651,\"tsm\":137},{\"tnm\":\"WSD_10_WD\",\"vt\":2,\"val\":\"400.0000\",\"vq\":0,\"tss\":1655460651,\"tsm\":468},{\"tnm\":\"WSD_10_SD\",\"vt\":2,\"val\":\"400.0000\",\"vq\":0,\"tss\":1655460651,\"tsm\":468},{\"tnm\":\"WSD_10_IoStatus\",\"vt\":1,\"val\":1,\"vq\":0,\"tss\":1655460651,\"tsm\":137}]}(String), 2022-06-21 15:46:15(String), A6(String)";
 /*       byte[] bytes = s.getBytes();

        DatagramPacket dp  = new DatagramPacket(bytes,bytes.length,ip,port);
        socket.send(dp);
        socket.close();*/
        //System.out.println("Hello, World");





    }


}
